package com.baizhi.cmfzmanager.service.impl;

import com.baizhi.cmfzmanager.dao.AudioDao;
import com.baizhi.cmfzmanager.entity.Audio;
import com.baizhi.cmfzmanager.service.AudioService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AudioServiceImpl implements AudioService {

    @Autowired
    private AudioDao audioDao;

    @Override
    public void insert(Audio audio) {
        audioDao.insert(audio);
    }

    @Override
    public List<Audio> getAudioByAlbumId(Integer albumId) {
        return audioDao.getAudioByAlbumId(albumId);
    }
}
